package com.qianfeng.service;

import com.qianfeng.dto.Page;
import com.qianfeng.entity.Doctor;

import java.util.List;

public interface DoctorService {
    /**
     * 添加医生
     * @param doctor
     */
    void addDoctor(Doctor doctor);

    /**
     * 更新医生
     * @param doctor
     */
    void updateDoctor(Doctor doctor);

    /**
     * 删除医生
     * @param dId
     */
    void deleteDoctor(Integer dId);

    /**
     * 通过ID获取医生
     * @param dId
     * @return
     */
    Doctor getDoctorById(Integer dId);

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @return
     */
    Page getDoctorPage(Integer pageNo, Integer pageSize);

    List<Doctor> getDoctorList();
}
